package com.egao.common.core.exception;

import org.springframework.security.authentication.AccountStatusException;

/**
 * 参数异常
 * Created by wangfan on 2018-02-22 11:29
 */
public class UserNotFoundException extends AccountStatusException {

    public UserNotFoundException(String message) {
        super(message);
    }


    @Override
    public String getMessage() {
        String message = super.getMessage();
        if (message == null) {
            message = "账号冻结";
        }
        return message;
    }
}
